/*
 * Parking.h
 *
 *  Created on: 22 mars 2012
 *      Author: root
 */

#ifndef PARKING_H_
#define PARKING_H_
#include <string>
#include<iostream>
using namespace std;

class Parking {

private:

	long NumParking;
	string NomParking;
	long CapaciteParking;
	long NombreDePlaceOccupe;
	string Adresse;
	string NomResponsable;

public:

//Les constructeurs:

	Parking();
	Parking(string,long,string,string,long,long);
	Parking(const Parking&);
	virtual ~Parking();

//Les getteurs et les setteurs:

	long getNumParking()const;
	void setNumParking(long);

	long getNombreDePlaceOccupe()const;
	void setNombreDePlaceOccupe(long);

	string getNomParking()const;
	void setNomParking(string);

	long getCapaciteParking()const;
	void setCapaciteParking(long);

	string getAdresse()const;
	void setAdresse(string);

	string getNomResponsable()const;
	void setNomResponsable(string);

	friend ifstream& operator>>(ifstream&,Parking&);
	friend ofstream& operator<<(ofstream&,Parking&);
	friend ostream& operator<<(ostream& , const Parking&);

};
ostream& operator<<(ostream& , const Parking&);
ifstream& operator>>(ifstream&,Parking&);
ofstream& operator<<(ofstream&,Parking&);

#endif





